package com.wuyan.web.auth.repo;

import com.wuyan.web.auth.entity.PubAccountRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * repository for PubAccountRole generated by jpa-codegen
 * TODO
 *
 * @author wuyan
 * @date 2021-02-22 17:21:53
 */

@Repository
public interface PubAccountRoleExtendRepo extends PubAccountRoleRepo {
    List<PubAccountRole> findAllByUserId(Integer userId);

    List<PubAccountRole> findAllByUserIdAndRoleIdIn(Integer userId, List<Integer> roleIds);
}